<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
      <f:metadata>
    	   <f:viewParam name="subject" value="#{disciplineBean.subjectId}"/>
    	   <f:viewParam name="term" value="#{disciplineBean.term}"/>
    	   <f:viewParam name="group" value="#{disciplineBean.groupId}"/>
	    </f:metadata>
      <head><title>IGNORED</title></head>
       <body>
      <ui:composition template="/templates/masterLayout.xhtml">
         <ui:define name="windowTitle">
            Файлы по дисциплине <h:outputText value="#{disciplineBean.discipline}" />
         </ui:define>
         <ui:define name="content">
         Файлы по дисциплине <h:outputText value="#{disciplineBean.discipline}" />
         <h:dataTable value="#{disciplineBean.discipline.files}" var="file">
    		<h:column>
        <f:facet name="header">
            <h:outputText value="Имя файла" />
        </f:facet>
        <h:outputLink value="uploads/#{file.encodedName}?id=#{file.id}">#{file.name}</h:outputLink>
    </h:column>
    <h:column>
        <f:facet name="header">
            <h:outputText value="Загружен" />
        </f:facet>
        <h:outputText value="#{file.uploadDate}" />
    </h:column>
			</h:dataTable>
         </ui:define>
      </ui:composition>
   </body>
 </html>
